package com.sq.partner.manager.controller;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sq.partner.manager.Message;
import com.sq.partner.manager.Message.Type;
import com.sq.partner.manager.mybatis.model.GatewayChannelInfo;
import com.sq.partner.manager.mybatis.model.LogManagerVo;
import com.sq.partner.manager.service.IGatewayChannelInfoConfigService;
import com.sq.partner.manager.service.impl.GatewayChannelInfoConfigServiceImpl;
import com.sq.partner.manager.util.JsonUtils;
import com.sq.partner.manager.util.LogUtil;
import com.sq.partner.manager.util.Page;

@Controller
@RequestMapping(value = "/multiFileDownload")
public class MultiFileDownloadController {

	@Resource
	private IGatewayChannelInfoConfigService gatewayChannelInfoConfigService;
	
	private static Logger logger = LogUtil.getLog(CommonController.class);
	
	@RequestMapping(value = "/loadChannelInfo", method = RequestMethod.POST)
    public @ResponseBody List<GatewayChannelInfo> queryList(ModelMap model,HttpServletRequest request,LogManagerVo lmvo) throws Exception {
		List<GatewayChannelInfo> channelList=null;
		try {
			if(lmvo !=null)
			{
				String fk_appid=lmvo.getIfobj();//格式:  nxs-liaoning
				GatewayChannelInfo channelinfo=new GatewayChannelInfo();
				channelinfo.setFkAppid(fk_appid);
				//channelList= gatewayChannelInfoConfigService.getListByAppid(channelinfo);
				/*if(null != channelList && channelList.size()!=0)
				{
					return channelList;
				}*/
				
				}
		} catch (Exception e) {
			logger.error("Exception",e);
			throw e;
			
		}
		return channelList;
    }
}
